package com.tim.ying.tree.node;

/**
 * 基本树构造
 * @author yingbibo
 *
 */
public class TreeNode {
	public String name;
	public int weight;
	public TreeNode left,right;
	public TreeNode next = null;
	public TreeNode(String name, int weight) {
		super();
		this.name = name;
		this.weight = weight;
		 
		
		
		
	}
	@Override
	public String toString() {
		return "TreeNode [name=" + name + ", weight=" + weight + ", left=" + left + ", right=" + right + "]";
	}
	
}
